package com.lagou.homework;

public class OnTest {

    public static void main(String[] args) {
        //调用旧手机功能
        OldPhone op = new OldPhone();
        op.call();
        op.sendMsg();

        System.out.println("---------------------------");

        //调用新手机功能
        NewPhone np = new NewPhone();
        np.call();
        np.sendMsg();
        np.playGame();
    }
}
